<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/bootstrap.min.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/bootstrap-responsive.min.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/uniform.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/matrix-style2.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/matrix-media.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
	<link rel="stylesheet" href="__PUBLIC__/Admin/font-awesome/css/font-awesome.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/changyun.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
</head>
<body>
<div id="content">
  <include file="Public/maintop" />
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
        <div class="widget-box">
		  <div class="widget-content" style="padding:5px;border:0px;height:30px;">
			<div class="fl table-button">
				<a href="{#:U('add')}" class="btn btn-success"><i class="icon-plus"></i> 新增</a> 
			</div>
		  </div>
		  
          <div class="widget-content" style="padding:5px;">
            <table class="table table-bordered table-striped with-check">
              <thead>
                <tr>
				  <th>UID</th>
				  <th class="">用户组</th>
				  <th class="">描述</th>
				  <th class="">访问授权</th>
				  <th class="">状态</th>
				  <th class="">操作</th>
                </tr>
              </thead>
              <tbody>
			  <notempty name="list">
			  <volist name="list" id="auth">
                <tr>
				  <td>{#$auth.id}</td>
				  <td>{#$auth.title}</td>
                  <td>{#$auth.description}</td>
                  <td><a href="{#:U('AuthGroup/access?id='.$auth[id])}" style="color:#ff0000;">[访问授权]</a></td>
                  <td>
					<eq name="auth.status" value="1">
					<a href="{#:U('AuthGroup/changeStatus?method=forbidUser&id='.$auth['id'])}" class="btn btn-mini btn-success">正常</a>
					<else/>
					<a href="{#:U('AuthGroup/changeStatus?method=resumeUser&id='.$auth['id'])}" class="btn btn-mini btn-danger">禁用</a>
					</eq>
				  </td>
				  <td style="width:220px;">
					<a title="编辑" href="{#:U('edit?id='.$auth['id'])}" class="btn btn-mini btn-success"><i class="icon-pencil"></i> 编辑</a>
					<a title="删除" href="javascript:void(0);" onclick="dodel('{#:U('AuthGroup/changeStatus?method=deleteuser&id='.$auth['id'])}')" class="btn btn-mini btn-danger"><i class="icon-remove"></i> 删除</a>
					</td>
                </tr>
				</volist>
				<else/>
				<td colspan="6" class="text-center"> 暂时还没有内容! </td>
				</notempty>
              </tbody>
            </table>
          </div>
        </div>
	  </div>
    </div>
  </div>
</div>

<script src="__JS__/jquery.min.js"></script> 
<script src="__JS__/jquery.ui.custom.js"></script> 
<script src="__JS__/bootstrap.min.js"></script> 
<script src="__JS__/jquery.uniform.js"></script> 
<script src="__JS__/select2.min.js"></script> 
<script src="__JS__/matrix.js"></script> 
<script src="__JS__/matrix.tables.js"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>
<script>
function dodel(jump_url){
	layer.confirm('确定要删除吗', {
		title:'提示',
		icon: 0,
		btn: ['确定','取消'] //按钮
	}, function(e){
		window.location.href = jump_url;
		layer.close(e);
	}, function(e){
		layer.close(e);
	});
}
</script>
</body>
</html>
